package o;

import com.huawei.appmarket.service.common.protocol.DetailProtocol;
import java.util.HashMap;
import java.util.Map;

public final class dro {
    private static Map<String, String> ˋ = new HashMap();

    public static String ˋ(String str) {
        String ˋ = cju.ˋ(str);
        if (ˋ == null) {
            return null;
        }
        ˋ = (String) ˋ.get(ˋ);
        if (ˋ != null) {
            return ˋ;
        }
        Logger.ˋ("DetailColumnRegistry", "fragment in detail not regist");
        return null;
    }

    public static cjm ॱ(String str, duk o_duk) {
        String ˋ = ˋ(str);
        if (ˋ == null) {
            Logger.ˋ("DetailColumnRegistry", "fragment in detail not regist");
            return null;
        }
        try {
            cjo o_cjo = (DetailProtocol) new cjq(ˋ).ˎ().ˏ();
            if (o_cjo == null) {
                Logger.ˋ("DetailColumnRegistry", "getDetailOffer failed: protocol == null");
                return null;
            }
            ((dun) o_cjo.ˊ()).ˎ(o_duk);
            return new cjm(ˋ, o_cjo);
        } catch (IllegalArgumentException e) {
            Logger.e("DetailColumnRegistry", "getDetailOffer failed:" + e.toString());
            return null;
        } catch (ClassCastException e2) {
            Logger.e("DetailColumnRegistry", "getDetailOffer failed:" + e2.toString());
            return null;
        }
    }

    public static void ˋ(String str, String str2) {
        ˋ.put(str, str2);
    }
}
